package com.IO.ZhuanHuanLiu;

import java.io.*;
import java.nio.charset.Charset;

public class A02OnputStreamWriter {
    public static void main(String[] args) throws IOException {
        /*
        * 利用转换流按照指定字符编码
        * */
        // OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("untitled\\a.txt"), "GBk");
        // osw.write("你好");
        // osw.close();
        
        // 11 jdk
        // FileWriter fw = new FileWriter("untitled\\a.txt", Charset.forName("GBK"));
    }
}
